package micro86.operation;

import micro86.engine.Memory;
import micro86.engine.State;

/**
 * Created with IntelliJ IDEA.
 * User: alar
 * Date: 26.02.13
 * Time: 15:59
 * To change this template use File | Settings | File Templates.
 */
public class Jmp implements IOperation {
    int index;

    public Jmp(int index){
        this.index = index;
    }

    @Override
    public void execute(State state, Memory memory) {
        state.setIP(index);
    }
}
